﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GrainManage.Entities.Status;
using GrainManage.Proxy.Util;
using System.Reflection;

namespace GrainManage.Proxy
{
    public sealed class StatusProxy : GrainManage.Interface.IStatus
    {

        //************************************************POST************************************************

        public OutputGetMessage GetMessage(InputGetMessage input)
        {
            var result = WebUtil.ExecuteByPost<OutputGetMessage>(UrlUtil.Generate(MethodBase.GetCurrentMethod()), input);
            return result;
        }

        public OutputGetAllByMessage GetAllByMessage(InputGetAllByMessage input)
        {
            var result = WebUtil.ExecuteByPost<OutputGetAllByMessage>(UrlUtil.Generate(MethodBase.GetCurrentMethod()), input);
            return result;
        }

        public OutputGetOverView GetOverView(InputGetOverView input)
        {
            var result = WebUtil.ExecuteByPost<OutputGetOverView>(UrlUtil.Generate(MethodBase.GetCurrentMethod()), input);
            return result;
        }
    }
}
